/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.softwareprincipals.lsp.obey.model;

/**
 *
 * @author Matthew
 */
public class Renting extends NewHouse{

    private int newPeople;

    public int getNewPeople() {
        return newPeople;
    }

    public void setNewPeople(int newPeople) {
        this.newPeople = newPeople;
    }

    public Renting() {
    }
    
    public Renting(int people, boolean paid) {
        super(people, paid);
    }

    @Override
    public boolean notOccupied() {
       if(people>newPeople)
           return false;
       else 
           return true;
    }

    @Override
    public boolean occupied(int people) {
        if((notOccupied() == true)&&(people>0)){
            return true;
        }else
            return false;
            
    }
    
}
